<?php
/**
 *  ForumControl Class
 *
 *  
 *
 *  @author     Vinod Kumar
 *  @version    $Revision: 1.0$
 *  @package    Project Name
 *
 */
class ForumControl extends MainControl {

	private $forumFacade;
	
	/**
     *  __construct
     *
     *  Set up request object & MainPage object
     *
     *  @param  object  request Request object
     */
	public function __construct($request) {

		$this->forumFacade = new ForumFacade();
		$this->request = $request;
		$this->mainPage = new MainPage();
	}/* END __construct */

	/**
     *  LoadAllForum
     *
     *  Load user's scraps
     */
	public function LoadAllForum() {
	    
	    $allForum = $this->forumFacade->fetchAllForum();
	    //set all forums to request object
	    //call forum list page from 'View'
	}/* END LoadAllForum */
	
	/**
     *  addForum
     *
     *  Add new forum
     * 
     */    
    public function addForum() {
        
        $retArray = $this->forumFacade->addForum();
    }/* END addForum */
    
    
    /**
     *  detailForum
     *
     *  detail of the forum
     * 
     */	
	public function detailForum() {
		
	}/* END detailForum */
	
	/**
     *  delForum
     *
     *  delete forum
     * 
     */    
    public function delForum() {
        
    }/* END delForum */
    
    /**
     *  addComment
     *
     *  Add comment to a particular forum
     * 
     */    
    public function addComment() {
        
        $retArray = $this->forumFacade->addComment();
    }/* END addComment */
    
    /**
     *  delComment
     *
     *  delete comment of a particular forum
     * 
     */    
    public function delComment() {
        
    }/* END delComment */
	
}/*END ForumControl*/
?>